package types

import "CampusRecruitment/pkg/models"

type CreateNewsForm struct {
	baseForm
	Title   string `json:"title,omitempty" binding:"required"`
	Content string `json:"content,omitempty" binding:"required"`
}

type UpdateNewsForm struct {
	baseForm
	Id      models.Id `json:"id" swaggerignore:"true"`
	Title   string    `json:"title" form:"title" `
	Content string    `json:"content" form:"content"`
}

type GetNewsListForm struct {
	pageForm
	Q string `json:"q"`
}

type ApproveNewsIds struct {
	baseForm
	Ids []models.Id `json:"ids"`
}

type GetMyNewsForm struct {
	pageForm
	Id models.Id `json:"id" swaggerignore:"true"`
	Q  string    `json:"q"`
}
